package cn.fjsay.java.demo6;

public class Order {
    private int orderNumber;
    private double orderAmount;

    public Order(int orderNumber, double orderAmount) {
        this.orderNumber = orderNumber;
        this.orderAmount = orderAmount;
    }

    public int getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(int orderNumber) {
        this.orderNumber = orderNumber;
    }

    public double getOrderAmount() {
        return orderAmount;
    }

    public void setOrderAmount(double orderAmount) {
        this.orderAmount = orderAmount;
    }

    @Override
    public String toString() {
        return "Order [orderNumber=" + orderNumber + ", orderAmount=" + orderAmount + "]";
    }
}